package InheritanceDemo4;

public class Person {
    private String id;
    private String name;
    private String gender;

    public Person(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public void showBasicInfo() {
        System.out.println("编号：" + id + "，姓名：" + name + "，性别：" + gender);
    }

    public void work() {
        System.out.println("在学校工作");
    }
}